This program is quite a simple two dimensional fluid simulator. The simulation is not supposed to be accurate but an approximation that runs in realtime. The fluid consists of many individual particles and are rendered simulating metaballs to make them look like liquid.

NOTES:
The fluid can be drained towards the mouse cursor by pressing down mouse1.
The fluid can be repelled away from the mouse cursor by pressing down mouse2.
The program defaults to a water like liquid but there are few presets that can easily be chosen by editing the PRESET define in loop.cpp.



Running the program:
The program comes with Windows and Linux binaries that should both run out of the box. Note that you must have your graphic card drivers installed and support for OpenGL 1.1.
The Windows and Linux binaries are both linked statically to GLFW (OpenGL Framework).
The Linux binary is compiled with the provided Makefile. If the Linux binary doesn't work try building your own.



Compiling instructions:
Linux users may use the provided Makefile to compile the program. You must have the dev package of GLFW installed to compile.
If you don't use the Makefile (like on Windows) you should link at least lglfw and lopengl32.



You may use all the source codes for anything you want.